package com.stylefeng.guns.common.persistence.dao;

import com.stylefeng.guns.common.persistence.model.MentoringRelation;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
  *  Mapper 接口
 * </p>
 *
 * @author rockjh
 * @since 2018-01-29
 */
public interface MentoringRelationMapper extends BaseMapper<MentoringRelation> {

    /**
     * 根据师傅编码和年度查找
     * @param masterEmpCode
     * @param year
     */
    List<MentoringRelation> findByMasterEmpCodeYear(@Param("masterEmpCode") String masterEmpCode,@Param("year")  String year);

    /**
     * 根据徒弟编码和年度查找
     * @param apprenticeEmpCode
     * @param year
     */
    MentoringRelation findByApprenticeEmpCodeYear(@Param("apprenticeEmpCode")String apprenticeEmpCode,@Param("year")String year);
}